import api from "../../common/api.js";
Component({
  /**
   * 组件的属性列表
   */
  properties: {
  },

  /**
   * 组件的初始数据
   */
  data: {
    eyeState: true,
    // sessionInfo: "",//我的头像部分内容
  },
  /**
   * 组件的方法列表
   */
  methods: {
    getSessionInfo() {
      wx.setStorageSync("isUpdateMine", false);
      var that = this;
      if (!wx.getStorageSync("isUpdateMine")) {
        api.getSessionInfo(null, function (res) {
          that.setData({
            sessionInfo: res.data.content
          })
        })
      }
    },
    //我的钱包数字显隐
    setEye() {
      var that = this;
      that.setData({
        eyeState: !that.data.eyeState,
      })
    },
    //跳转设置
    goSetting() {
      wx.navigateTo({
        url: '/pages/mine/setting/setting',
      })

    },
    //跳转我的店组
    goShopGroupIndex() {
      wx.navigateTo({
        url: '/pages/mine/shopGroupIndex/shopGroupIndex',
      })

    },
  }
})
